package subscriber

import (
	"log"

	product "git.oschina.net/fanbuchi/xgggh/product/proto/product"
	"golang.org/x/net/context"
)

type Product struct{}

func (e *Product) Handle(ctx context.Context, msg *product.Message) error {
	log.Print("Handler Received message: ", msg.Say)
	return nil
}

func Handler(ctx context.Context, msg *product.Message) error {
	log.Print("Function Received message: ", msg.Say)
	return nil
}
